(Al-Baqara) 2 : 143
وَكَذَٰلِكَ جَعَلْنَاكُمْ أُمَّةً وَسَطًا لِتَكُونُوا شُهَدَاءَ عَلَى النَّاسِ وَيَكُونَ الرَّسُولُ عَلَيْكُمْ شَهِيدًا ۗ وَمَا جَعَلْنَا الْقِبْلَةَ الَّتِي كُنْتَ عَلَيْهَا إِلَّا لِنَعْلَمَ مَنْ يَتَّبِعُ الرَّسُولَ مِمَّنْ يَنْقَلِبُ عَلَىٰ عَقِبَيْهِ ۚ وَإِنْ كَانَتْ لَكَبِيرَةً إِلَّا عَلَى الَّذِينَ هَدَى اللَّهُ ۗ وَمَا كَانَ اللَّهُ لِيُضِيعَ إِيمَانَكُمْ ۚ إِنَّ اللَّهَ بِالنَّاسِ لَرَءُوفٌ رَحِيمٌ
And just like that We have made you a community justly balanced so that you may act as witnesses upon mankind just like the Messenger witnessed upon you, and We didn’t make Qibla which you had except for that We have to Know who is following the Messenger from the one who is turning upon his heels, and indeed that event was an intolerable matter except upon those whom Lord Allah has guided! And Allah doesn’t intend to make your faith fruitless, indeed Allah is Kind and Merciful towards mankind.